<script setup lang="ts">
import { useRouter } from 'vue-router';

const router = useRouter();

function navigateToWorkflow() {
  router.push('/workflow');
}
</script>

<template>
  <div class="home-container">
    <h1>数据节点工作流</h1>
    <div class="action-buttons">
      <el-button type="primary" @click="navigateToWorkflow">打开工作流编辑器</el-button>
    </div>
  </div>
</template>

<style scoped>
.home-container {
  padding: 40px;
  text-align: center;
}

.action-buttons {
  margin-top: 30px;
}
</style>